
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )

include('shared.lua')

util.PrecacheModel("models/Items/AR2_Grenade.mdl")

function ENT:Initialize()

	self.Entity:DrawShadow(false)
	self.Entity:SetModel( "models/Items/AR2_Grenade.mdl" )
	self.Entity:SetMoveType( MOVETYPE_NOCLIP )
	self.Entity:SetSolid(SOLID_NONE)
	self.Entity:SetCollisionGroup(COLLISION_GROUP_NONE)

end

function ENT:SetPlayer( Ply )

	self.Entity:SetNetworkedEntity( "Player", Ply )
	self.Entity:NextThink( CurTime() )
	
	self.TrackEnt = Ply

end

function ENT:SetOffset( Vec )
	self.Entity:SetNetworkedVector( "Offset", Vec )
end

function ENT:Think()

	self.TrackEnt = self.Entity:GetNetworkedEntity( "Player" )	
	self:TrackEntity( self.TrackEnt )
	
	self.Entity:NextThink( CurTime() )
	
end

function ENT:OnTakeDamage( dmginfo )
end

function ENT:OnRemove()
end
